package com.sdx.console.plan.dao;

import com.ibeetl.admin.core.entity.BaseEntity;
import com.sdx.console.plan.entity.TDPlanningData;
import org.beetl.sql.core.annotatoin.SqlResource;
import org.beetl.sql.core.engine.PageQuery;
import org.beetl.sql.core.mapper.BaseMapper;

import java.util.List;
import java.util.Map;

/**
 * 招生计划 Dao
 */
@SqlResource("plandata.tDPlanningData")
public interface TDPlanningDataDao extends BaseMapper<TDPlanningData>{
    public PageQuery<TDPlanningData> queryByCondition(PageQuery query);
    public void batchDelTDPlanningDataByIds(List<String> ids,String tablename );
    public List<TDPlanningData> selectProvince();
    public List<TDPlanningData> selectBaseUniv( Map<String,Object> map);
    public List<TDPlanningData> selectBatch( Map<String,Object> map);
    public List<TDPlanningData> selectMajor( Map<String,Object> map);
    List<TDPlanningData> selectTDPlanningData(Map<String, Object> map);
    public void insertPlanData(TDPlanningData plan);
    public Integer selectMajorId(String majorName,Integer hasRegular);
    public Integer selectSubclassId(String majorName,Integer hasRegular);
    public Integer selectPlanDataCount(TDPlanningData plan);

    List<TDPlanningData> selectUniv();

    void updatePlanData(TDPlanningData tDPlanningData);

    TDPlanningData queryPlanDataById(Integer id, String tablename);
}